package com.iengoo.inductionms.service.impl;

import com.iengoo.inductionms.entity.AdditionalInformation;
import com.iengoo.inductionms.mapper.AdditionalInformationMapper;
import com.iengoo.inductionms.service.AdditionalInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;

/**
 * Author:huermao
 **/
@Service
public class AdditionalInformationServiceImpl implements AdditionalInformationService {
    @Autowired
    private AdditionalInformationMapper additionalInformationMapper;
    //添加员工附加信息
    @Override
    public void insert(AdditionalInformation additionalInformation) {
        long currentTimeMillis = System.currentTimeMillis();
        Timestamp createTime = new Timestamp(currentTimeMillis);
        additionalInformation.setCreateTime(createTime);
        additionalInformationMapper.insert(additionalInformation);
    }
}
